package _spring_test._ApplicationEventMulticaster;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Author: huangya
 * @Date: 2020/5/19
 * @Description:
 */
public class ListenerTest implements ApplicationListener {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        if(event instanceof EventTest){
            ((EventTest) event).getMesaage();
        }
    }
}
